package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.BaseObjectBean;
import cn.xfdzx.android.apps.shop.bean.CategoryAllBeen;
import cn.xfdzx.android.apps.shop.bean.NewOrderBeen;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface PayContract {
    interface Model {
        Flowable<NewOrderBeen> confirmOrder(String orderKey, String couponId, String marks, String payType, String pinkId, String seckill_id, String addressId, String useIntegral, String leftName, String rightName, String delivery_method,String logistics_type, String order_express_type);
        Flowable<NewOrderBeen> toPay(String from, String paytype, String uni);
    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onConfirmOrderSuccess(NewOrderBeen bean);

        void onPaySuccess(NewOrderBeen bean);
    }

    interface Presenter {
        /**

         */
        void confirmOrder(String orderKey, String couponId, String marks, String payType, String pinkId, String seckill_id, String addressId, String useIntegral, String leftName, String rightName, String delivery_method,String logistics_type, String order_express_type);
        /**
         *
         */
        void toPay(String from, String paytype, String uni );
    }
}
